# -*- coding: utf-8 -*-
# @Author   : Claus
# @Time     : 2020/6/21 13:58
# @FileName : jg_re.py

import requests
import re
header = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36",
    'Cookie': 'JSESSIONID=9EBB93AE27FC185DD64AFB08E992703B.tomcat3_system_portal'
}

detail_url = "https://www.whzbtb.com/V2PRTS/AmendBulletinInfoDetail.do?%69%64=%31%64%35%34%61%34%61%39%2d%38%30%65%63%2d%34%61%35%61%2d%39%34%64%65%2d%66%32%37%31%39%31%63%62%65%30%34%64"
requests.packages.urllib3.disable_warnings()
response = requests.get(detail_url, verify=False)
# print(response.content.decode())
#  结构化 数据
# html = etree.HTML(response.content.decode())
html = response.content.decode()
# 我需要把里面的 一个 div整体 提出来
div_str = re.search('(<div class="pageRight_box">.*?)<div class="footer">', html, re.S)
print(div_str.group(1))

a = "111"
b = '11'
